projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d0f841
)
[WINDOWSNT]: Force the first argv passed to execvp to point to alternate_editor
author
Juanma Barranquero
<lekktu@gmail.com>
Wed, 1 Nov 2006 19:26:14 +0000
(19:26 +0000)
committer
Juanma Barranquero
<lekktu@gmail.com>
Wed, 1 Nov 2006 19:26:14 +0000
(19:26 +0000)
(otherwise .BAT scripts can't run).
lib-src/emacsclient.c
patch
|
blob
|
history
diff --git
a/lib-src/emacsclient.c
b/lib-src/emacsclient.c
index a155073c0726dd5a9d1ec9c3f72ae5887040d2ab..28e626f77d0ca98be14a54f24b3b36579582484b 100644
(file)
--- a/
lib-src/emacsclient.c
+++ b/
lib-src/emacsclient.c
@@
-250,6
+250,9
@@
fail (argc, argv)
if (alternate_editor)
{
int i = optind - 1;
+#ifdef WINDOWSNT
+ argv[i] = (char *)alternate_editor;
+#endif
execvp (alternate_editor, argv + i);
fprintf (stderr, "%s: error executing alternate editor \"%s\"\n",
progname, alternate_editor);